package com.castle.fortress.admin.flowable.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
/**
 * 流程模板管理表 实体类
 *
 * @author castle
 * @since 2022-09-26
 */
@Data
@TableName("castle_flowable_template")
public class FlowableTemplateEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(
			value = "id",
			type = IdType.ASSIGN_ID
	)
	private Long id;
	/**
	 * 流程标题
	*/
	private String title;
	/**
	 * 流程内容xml
	*/
	private String contentXml;
	/**
	 * 流程内容json
	*/
	private String contextJson;
	/**
	 * 状态
	*/
	private Integer status;
	/**
	 * 创建时间
	*/
	private Date createTime;
	/**
	 * 部署时间
	*/
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private Date deployTime;
	/**
	 * 流程key
	*/
	private String actKey;
	/**
	 * 绑定表单id
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long formKey;
	/**
	 * 部署id
	*/
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String deployId;
	/**
	 * 部署版本
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String engineVersion;

	@TableField(exist = false)
	private String formName;

	@TableLogic(value= "2",delval="1")
	@ApiModelProperty("是否删除")
	private Integer isDeleted;

}
